Part Number Hot Search : 
C1446 311739 R5F2123 D218ERU BAW56 TDB7711 01906 MUN5216
Product Description
Full Text Search
 

To Download SC16C852V Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the SC16C852V is a 1.8 v, low power dual channel universal asynchronous receiver and transmitter (uart) used for serial data communications. its principal function is to convert parallel data into serial data and vice versa. the uart can handle serial data rates up to 5 mbit/s. SC16C852V can be programmed to operate in extended mode where additional advanced uart features are available (see section 6.2 ). the SC16C852V family uart provides enhanced uart functions with 128-byte fifos, modem control interface, dma mode data transfer, and irda encoder/decoder. on-board status registers provide the user with error indications and operational status. system interrupts and modem control features may be tailored by software to meet speci?c user requirements. an internal loopback capability allows on-board diagnostics. independent programmable baud rate generators are provided to select transmit and receive baud rates. the SC16C852V with intel xscale processor vlio interface operates at 1.8 v and is available in hvqfn48 and tfbga36 packages. 2. features n dual channel high performance uart n 1.8 v operation n advanced packages: hvqfn and tfbga n up to 5 mbit/s data rate at 1.8 v n 128-byte transmit fifo to reduce the bandwidth requirement of the external cpu n 128-byte receive fifo with error ?ags to reduce the bandwidth requirement of the external cpu n 128 programmable receive and transmit fifo interrupt trigger levels n 128 receive and transmit fifo reporting levels (level counters) n automatic software (xon/xoff) and hardware ( r ts/ cts or dtr/ dsr) ?ow control n programmable xon/xoff characters n 128 programmable hardware and software trigger levels n automatic 9-bit mode (rs-485) address detection n automatic rs-485 driver turn-around with programmable delay n dual channel concurrent write n uart software reset n high resolution clock prescaler, from 0 to 15 with granularity of 1 16 to allow non-standard uart clock to be used n industrial temperature range ( - 40 c to +85 c) n software compatible with industry standard sc16c652b SC16C852V 1.8 v dual uart, 5 mbit/s (max.) with 128-byte fifos, infrared (irda), and xscale vlio bus interface rev. 03 15 october 2007 product data sheet
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 2 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface n software selectable baud rate generator n supports irda version 1.0 (up to 115.2 kbit/s) n standard modem interface or infrared irda encoder/decoder interface n enhanced sleep mode and low power feature n modem control functions ( cts, r ts, dsr, dtr, ri, cd) n independent transmitter and receiver enable/disable n pb-free, rohs compliant package offered 3. ordering information table 1. ordering information type number package name description version SC16C852Vibs hvqfn48 plastic thermal enhanced very thin quad ?at package; no leads; 48 terminals; body 6 6 0.85 mm sot778-3 SC16C852Viet tfbga36 plastic thin ?ne-pitch ball grid array package; 36 balls; body 3.5 3.5 0.8 mm sot912-1
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 3 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 4. block diagram fig 1. block diagram of SC16C852V (hvqfn48 package) txa, txb rxa, rxb SC16C852Vibs xtal2 xtal1 ad0 to ad7 002aac349 data b u s and control logic register select logic cs interrupt control logic inta, intb clock and baud rate generator interconnect bus lines and control signals modem control logic dtra, dtrb rtsa, rtsb op2a, op2b ctsa, ctsb ria, rib cda, cdb dsra, dsrb receive shift register receive fifo register flow control logic flow control logic transmit shift register transmit fifo register ir decoder ir encoder ior iow reset lla power down control txrdya, txrdyb rxrdya, rxrdyb lowpwr
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 4 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 2. block diagram of SC16C852V (tfbga36 package) txa, txb rxa, rxb SC16C852Viet xtal2 xtal1 ad0 to ad7 002aac348 data b u s and control logic register select logic cs interrupt control logic inta, intb clock and baud rate generator interconnect bus lines and control signals modem control logic dtra, dtrb rtsa, rtsb ctsa, ctsb ria, rib cda, cdb dsra, dsrb receive shift register receive fifo register flow control logic flow control logic transmit shift register transmit fifo register ir decoder ir encoder ior iow reset lla power down control lowpwr
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 5 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 5. pinning information 5.1 pinning fig 3. pin con?guration for hvqfn48 fig 4. pin con?guration for tfbga36 002aac351 SC16C852Vibs transparent top view n.c. n.c. lowpwr n.c. cs n.c. op2b lla txb intb txa inta txrdyb rxrdya rxa op2a rxb rtsa ad7 dtra ad6 dtrb ad5 reset xtal1 xtal2 iow cdb v ss rxrdyb ior dsrb rib rtsb ctsb n.c. ad4 ad3 ad2 ad1 ad0 txrdya v dd ria cda dsra ctsa n.c. 12 11 10 9 8 7 6 5 4 3 2 1 25 26 27 28 29 30 31 32 33 34 35 36 13 14 15 16 17 18 19 20 21 22 23 24 48 47 46 45 44 43 42 41 40 39 38 37 terminal 1 index area 002aac350 SC16C852Viet transparent top view f e d c a b 246 135 ball a1 index area
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 6 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 5.2 pin description fig 5. tfbga36 ball mapping (transparent top view) ad4 ad2 ad0 ria dsra ctsa 123456 ad5 ad3 ad1 cda reset dtrb a b ad7 rxb ad6 v dd dtra rtsa c rxa xtal1 v ss inta intb d txb cs iow dsrb rtsb lla e lowpwr xtal2 ior rib ctsb f 002aac352 txa cdb table 2. pin description symbol pin type description tfbga36 hvqfn48 ad0 a3 44 i/o address and data bus (bidirectional). these pins are the 8-bit multiplexed data bus and address bus for transferring information to or from the controlling cpu. ad0 is the least signi?cant bit and is address a0 during the address cycle, and ad7 is the most signi?cant bit and is address a7 during the address cycle. ad1 b3 45 ad2 a2 46 ad3 b2 47 ad4 a1 48 ad5 b1 1 ad6 c3 2 ad7 c1 3 cd ab4 40 i carrier detect (active low). these inputs are associated with individual uart channels a through b. a logic 0 on this pin indicates that a carrier has been detected by the modem for that channel. cdb f3 16 cs e2 10 i chip select (active low). this pin enables the data transfers between the host and the SC16C852V for the addressed channel. individual channel selection is done with address a6. when a6 is 0 channel a is selected, and when a6 is 1 channel b is selected. ctsa a6 38 i clear to send (active low). these inputs are associated with individual uart channels, a through b. a logic 0 on the cts pin indicates the modem or data set is ready to accept transmit data from the SC16C852V. status can be tested by reading msr[4]. ctsb f6 23 dsra a5 39 i data set ready (active low). these inputs are associated with individual uart channels, a through b. a logic 0 on this pin indicates the modem or data set is powered-on and is ready for data exchange with the uart. status can be tested by reading msr[5]. dsrb e4 20 dtra c5 34 o data terminal ready (active low). these outputs are associated with individual uart channels, a through b. a logic 0 on this pin indicates that the SC16C852V is powered-on and ready. this pin can be controlled via the modem control register. writing a logic 1 to mcr[0] will set the dtr output to logic 0, enabling the modem. this pin will be a logic 1 after writing a logic 0 to mcr[0], or after a reset. dtrb b6 35
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 7 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface inta d5 30 o channel a interrupt output. the output state is de?ned by the user through the software setting of mcr[3]. inta is set to the active mode when mcr[3] is set to a logic 1. inta is set to the 3-state mode when mcr[3] is set to a logic 0. see t ab le 21 . intb d6 29 o channel b interrupt output. the output state is de?ned by the user through the software setting of mcr[3]. intb is set to the active mode when mcr[3] is set to a logic 1. intb is set to the 3-state mode when mcr[3] is set to a logic 0. see t ab le 21 . ior f4 19 i read strobe (active low). a high to low transition on this signal starts the read cycle. the SC16C852V reads a byte from the internal register and puts the byte on the data bus for the host to retrieve. io we3 15 i write strobe (active low). a high to low transition on this signal starts the write cycle, and a low to high transition transfers the data on the data bus to the internal register. lla e6 28 i latch lower address (active low). a logic low on this pin puts the vlio interface in the address phase of the transaction, where the lower 8 bits of the vlio (specifying the uart register and the channel address) are loaded into the address latch of the device through the ad7 to ad0 bus. a logic high puts the vlio interface in the data phase where data can are transferred between the host and the uart. lowpwr f1 12 i low power. when asserted (active high), the device immediately goes into low power mode. the oscillator is shut-off and some host interface pins are isolated from the hosts bus to reduce power consumption. the device only returns to normal mode when the lowpwr pin is de-asserted. on the negative edge of a de-asserting lowpwr signal, the device is automatically reset and all registers return to their default reset states. this pin has an internal pull-down resistor, therefore, it can be left unconnected. n.c. - 11, 24, 25, 26, 27, 37 - not connected op2a - 32 o output 2 (user-de?ned). this function is associated with individual channels, a through b. the state at these pin(s) are de?ned by the user and through mcr register bit 3. inta, intb are set to the active mode and op2a/ op2b to logic 0 when mcr[3] is set to a logic 1. inta, intb are set to the 3-state mode and op2a/ op2b to a logic 1 when mcr[3] is set to a logic 0 (see t ab le 20 modem control register bits descr iption , bit 3). since these bits control both the inta, intb operation and op2a/ op2b outputs, only one function should be used at one time, interrupt or op function. op2b - 9 o reset b5 36 i master reset (active low). a reset pulse will reset the internal registers and all the outputs. the SC16C852V transmitter outputs and receiver inputs will be disabled during reset time. (see section 7.23 SC16C852V e xter nal reset condition and softw are reset for initialization details.) ria a4 41 i ring indicator (active low). these inputs are associated with individual uart channels, a through b. a logic 0 on this pin indicates the modem has received a ringing signal from the telephone line. a logic 1 transition on this input pin will generate an interrupt. rib f5 21 table 2. pin description continued symbol pin type description tfbga36 hvqfn48
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 8 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface [1] hvqfn package die supply ground is connected to both v ss pin and exposed center pad. v ss pin must be connected to supply ground for proper device operation. for enhanced thermal, electrical, and board level performance, the exposed pad needs to be soldere d to the board using a corresponding thermal pad on the board and for proper heat conduction through the board, thermal vias need to be incorporated in the pcb in the thermal pad region. r tsa c6 33 o request to send (active low). these outputs are associated with individual uart channels, a through b. a logic 0 on the r ts pin indicates the transmitter has data ready and waiting to send. writing a logic 1 in the modem control register mcr[1] will set this pin to a logic 0, indicating data is available. after a reset this pin will be set to a logic 1. r tsb e5 22 rxa d1 5 i receive data a, b. these inputs are associated with individual serial channel data to the SC16C852V receive input circuits, a through b. the rx signal will be a logic 1 during reset, idle (no data), or when not receiving data. during the local loopback mode, the rx input pin is disabled and tx data is connected to the uart rx input, internally. rxb c2 4 rxrd y a - 31 o receive ready a, b (active low). this function provides the rx fifo/rhr status for individual receive channels (a to b). rxrd yn is primarily intended for monitoring dma mode 1 transfers for the receive data fifos. a logic 0 indicates there is a receive data to read/upload, that is, receive ready status with one or more rx characters available in the fifo/rhr. this pin is a logic 1 when the fifo/rhr is empty or when the programmed trigger level has not been reached. this signal can also be used for single mode transfers (dma mode 0). rxrd yb - 18 o txa d2 7 o transmit data a, b. these outputs are associated with individual serial transmit channel data from the SC16C852V. the tx signal will be a logic 1 during reset, idle (no data), or when the transmitter is disabled. during the local loopback mode, the tx output pin is disabled and tx data is internally connected to the uart rx input. txb e1 8 txrd y a - 43 o transmit ready a, b (active low). these outputs provide the tx fifo/thr status for individual transmit channels (a to b). txrd yn is primarily intended for monitoring dma mode 1 transfers for the transmit data fifos. an individual channels txrd y a, txrd yb buffer ready status is indicated by logic 0, that is, at lease one location is empty and available in the fifo or thr. this pin goes to a logic 1 (dma mode 1) when there are no more empty locations in the fifo or thr. this signal can also be used for single mode transfers (dma mode 0). txrd yb - 6 o v dd c4 42 i power supply input. v ss d4 17 [1] i signal and power ground. xtal1 d3 13 i crystal or external clock input. functions as a crystal input or as an external clock input. a crystal can be connected between this pin and xtal2 to form an internal oscillator circuit. alternatively, an external clock can be connected to this pin to provide custom data rates (see section 6.9 prog r ammab le baud r ate gener ator ). see figure 7 . xtal2 f2 14 o output of the crystal oscillator or buffered clock. (see also xtal1.) crystal oscillator output or buffered clock output. should be left open if an external clock is connected to xtal1. table 2. pin description continued symbol pin type description tfbga36 hvqfn48
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 9 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6. functional description the SC16C852V provides serial asynchronous receive data synchronization, parallel-to-serial and serial-to-parallel data conversions for both the transmitter and receiver sections. these functions are necessary for converting the serial data stream into parallel data that is required with digital data systems. synchronization for the serial data stream is accomplished by adding start and stop bits to the transmit data to form a data character (character orientated protocol). data integrity is ensured by attaching a parity bit to the data character. the parity bit is checked by the receiver for any transmission bit errors. the electronic circuitry to provide all these functions is fairly complex, especially when manufactured on a single integrated silicon chip. the SC16C852V represents such an integration with greatly enhanced features. the SC16C852V is fabricated with an advanced cmos process. the SC16C852V is an upward solution to the sc16c652b with a vlio interface that provides a dual uart capability with 128 bytes of transmit and receive fifo memory, instead of 32 bytes for the sc16c652b. the SC16C852V is designed to work with high speed modems and shared network environments that require fast data processing time. increased performance is realized in the SC16C852V by the transmit and receive fifos. this allows the external processor to handle more networking tasks within a given time. in addition, the four selectable receive and transmit fifo trigger interrupt levels are provided in normal mode, or 128 programmable levels are provided in extended mode for maximum data throughput performance especially when operating in a multi-channel environment (see section 6.2 extended mode (128-b yte fifo) ). the fifo memory greatly reduces the bandwidth requirement of the external controlling cpu, and increases performance. a low power pin (lowpwr) is provided to further reduce power consumption by isolating the host interface bus. the SC16C852V is capable of operation up to 5 mbit/s with an external 80 mhz clock. with a crystal is capable of operation up to 1.5 mbit/s. the rich feature set of the SC16C852V is available through internal registers. these features are: selectable and programmable receive and transmit fifo trigger levels, selectable tx and rx baud rates, and modem interface controls (all standard features). following a power-on reset an external reset or a software reset, the SC16C852V is software compatible with the previous generation sc16c652b. 6.1 uart a-b functions the uart provides the user with the capability to bidirectionally transfer information between a cpu and an external serial device. the cs pin together with addresses a6 and a7 determine which channel of the uart is being accessed; see t ab le 3 . table 3. serial port selection h = high-level; l = low-level; x = dont care. chip select function cs = h, a7 = x, a6 = x none cs = l, a7 = l, a6 = l uart channel a cs = l, a7 = l, a6 = h uart channel b cs = l, a7 = l, a6 = x device not selected
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 10 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.2 extended mode (128-byte fifo) the device is in the extended mode when any of these four registers contains any value other than 0: flwcnth, flwcntl, txintlvl, rxintlvl. 6.3 internal registers the SC16C852V provides two sets of internal registers (a and b) consisting of 25 registers each for monitoring and controlling the functions of each channel of the uart. these registers are shown in t ab le 4 . [1] these registers are accessible only when lcr[7] is a logic 0. table 4. internal registers decoding a3 a2 a1 read mode write mode general register set (thr/rhr, ier/isr, mcr/msr, fcr, lsr, spr) [1] 0 0 0 receive holding register transmit holding register 0 0 1 interrupt enable register interrupt enable register 0 1 0 interrupt status register fifo control register 0 1 1 line control register line control register 1 0 0 modem control register modem control register 1 0 1 line status register extra feature control register (efcr) 1 1 0 modem status register n/a 1 1 1 scratchpad register scratchpad register baud rate register set (dll/dlm) [2] 0 0 0 lsb of divisor latch lsb of divisor latch 0 0 1 msb of divisor latch msb of divisor latch second special register set (txlvlcnt/rxlvlcnt) [3] 011tr ansmit fifo level count n/a 1 0 0 receive fifo level count n/a enhanced register set (efr, xon1/xon2, xoff1/xoff2) [4] 0 1 0 enhanced feature register enhanced feature register 1 0 0 xon1 word xon1 word 1 0 1 xon2 word xon2 word 1 1 0 xoff1 word xoff1 word 1 1 1 xoff2 word xoff2 word first extra feature register set (txintlvl/rxintlvl, flwcnth/flwcntl) [5] 010tr ansmit fifo interrupt level transmit fifo interrupt level 1 0 0 receive fifo interrupt level receive fifo interrupt level 1 1 0 flow control count high flow control count high 1 1 1 flow control count low flow control count low second extra feature register set (clkpres, rs485time, afcr2, afcr1) [6] 0 1 0 clock prescaler clock prescaler 1 0 0 rs-485 turn-around timer rs-485 turn-around timer 1 1 0 additional feature control register 2 additional feature control register 2 1 1 1 additional feature control register 1 additional feature control register 1
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 11 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface [2] these registers are accessible only when lcr[7] is a logic 1. [3] second special register are accessible only when efcr[0] = 1. [4] enhanced feature registers are only accessible when lcr = 0xbf. [5] first extra feature registers are only accessible when efcr[2:1] = 01b. [6] second extra feature registers are only accessible when efcr[2:1] = 10b. 6.4 fifo operation 6.4.1 32-byte fifo mode when all four of these registers (txintlvl, rxintlvl, flwcnth, flwcntl) in the first extra register set are empty (0x00) the transmit and receive trigger levels are set by fcr[7:4]. in this mode the transmit and receive trigger levels are backward compatible to the sc16c652b (see t ab le 5 ), and the fifo sizes are 32 entries. the transmit and receive data fifos are enabled by the fifo control register bit 0 (fcr[0]). it should be noted that the user can set the transmit trigger levels by writing to the fcr, but activation will not take place until efr[4] is set to a logic 1. the receiver fifo section includes a time-out function to ensure data is delivered to the external cpu (see section 6.8 ). please refer to t ab le 12 and t ab le 13 for the setting of fcr[7:4]. 6.4.2 128-byte fifo mode when either txintlvl, rxintlvl, flwcnth or flwcntl in the first extra register set contains any value other than 0x00, the transmit and receive trigger levels are set by txintlvl and rxintlvl registers. txintlvl sets the trigger levels for the transmit fifo, and the transmit trigger levels can be set to any value between 1 and 128 with granularity of 1. rxintlvl sets the trigger levels for the receive fifo, the receive trigger levels can be set to any value between 1 and 128 with granularity of 1. when the effective fifo size changes (that is, when fcr[0] toggles or when the combined content of txintlvl, rxintlvl, flwcnth and flwcntl changes between equal and unequal to 0x00), both rx fifo and tx fifo will be reset (data in the fifo will be lost). 6.5 hardware ?ow control when automatic hardware ?ow control is enabled, the SC16C852V monitors the ctsx pin for a remote buffer over?ow indication and controls the r tsx pin for local buffer over?ows. automatic hardware ?ow control is selected by setting efr[6] (rts) and efr[7] (cts) to a logic 1. if ctsx transitions from a logic 0 to a logic 1 indicating a ?ow control request, isr[5] will be set to a logic 1 (if enabled via ier[7:6]), and the SC16C852V will suspend tx transmissions as soon as the stop bit of the character in process is shifted out. transmission is resumed after the ctsx input returns to a logic 0, indicating more data may be sent. table 5. interrupt trigger level and flow control mechanism (fcr[7:6, 5:4]) inta/intb pin activation negate r tsa/ r tsb or send xoff assert r tsa/ r tsb or send xon rx tx [00, 00] 8 16 8 0 [01, 01] 16 8 16 7 [10, 10] 24 24 24 15 [11, 11] 28 30 28 23
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 12 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface when afcr1[2] is set to 1, then the function of ctsx pin is mapped to the dsrx pin, and the function of r ts is mapped to dtrx pin. dsrx and dtrx pins will behave as described above for ctsx and r tsx. with the automatic hardware ?ow control function enabled, an interrupt is generated when the receive fifo reaches the programmed trigger level. the r tsx (or dtrx) pin will not be forced to a logic 1 (rts off) until the receive fifo reaches the next trigger level. however, the r tsx (or dtrx) pin will return to a logic 0 after the receive buffer (fifo) is unloaded to the next trigger level below the programmed trigger level. under the above described conditions, the SC16C852V will continue to accept data until the receive fifo is full. when txintlvl, rxintlvl, flwcnth and flwcntl in the first extra register set are all zeroes, the hardware and software ?ow control trigger levels are set by fcr[7:4]; see t ab le 5 . when either txintlvl, rxintlvl, flwcnth or flwcntl in the first extra register set contains any value other than 0x00, the hardware and software ?ow control trigger levels are set by flwcnth and flwcntl. the content in flwcnth determines how many bytes are in the receive fifo before r tsx (or dtrx) is de-asserted or xoff is sent. the content of flwcntl determines how many bytes are in the receive fifo before r tsx (or dtrx) is asserted, or xon is sent. in 128-byte fifo mode, hardware and software ?ow control trigger levels can be set to any value between 1 and 128 in granularity of 1. the value of flwcnth should always be greater than flwcntl. the uart does not check for this condition automatically, and if this condition is not met spurious operation of the device might occur. when using flwcnth and fwlcntl, these registers must be initialized to the proper values before hardware or software ?ow control is enabled via the efr register. 6.6 software ?ow control when software ?ow control is enabled, the SC16C852V compares one or two sequentially received data characters with the programmed xon or xoff character value(s). if the received character(s) match the programmed xoff values, the SC16C852V will halt transmission (tx) as soon as the current character(s) has completed transmission. when a match occurs, isr bit 4 will be set (if enabled via ier[5]) and the interrupt output pin (if receive interrupt is enabled) will be activated. following a suspension due to a match of the xoff characters values, the SC16C852V will monitor the receive data stream for a match to the xon1/xon2 character value(s). if a match is found, the SC16C852V will resume operation and clear the ?ags (isr[4]). reset initially sets the contents of the xon/xoff 8-bit ?ow control registers to a logic 0. following reset, the user can write any xon/xoff value desired for software ?ow control. different conditions can be set to detect xon/xoff characters and suspend/resume transmissions (see t ab le 26 ). when double 8-bit xon/xoff characters are selected, the SC16C852V compares two consecutive receive characters with two software ?ow control 8-bit values (xon1, xon2, xoff1, xoff2) and controls tx transmissions accordingly. under the above described ?ow control mechanisms, ?ow control characters are not placed (stacked) in the receive fifo. when using software ?ow control, the xon/xoff characters cannot be used for data transfer.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 13 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface in the event that the receive buffer is over?lling, the SC16C852V automatically sends an xoff character (when enabled) via the serial tx output to the remote uart. the SC16C852V sends the xoff1/xoff2 characters as soon as the number of received data in the receive fifo passes the programmed trigger level. to clear this condition, the SC16C852V will transmit the programmed xon1/xon2 characters as soon as the number of characters in the receive fifo drops below the programmed trigger level. 6.7 special character detect a special character detect feature is provided to detect an 8-bit character when efr[5] is set. when an 8-bit character is detected, it will be placed on the user-accessible data stack along with normal incoming rxa/rxb data. this condition is selected in conjunction with efr[3:0] (see t ab le 26 ). note that software ?ow control should be turned off when using this special mode by setting efr[3:0] to all zeroes. the SC16C852V compares each incoming receive character with xoff2 data. if a match occurs, the received data will be transferred to the fifo, and isr[4] will be set to indicate detection of a special character. although t ab le 9 SC16C852V inter nal registers shows xon-1, xon-2, xoff-1, xoff-2 with eight bits of character information, the actual number of bits is dependent on the programmed word length. line control register bits lcr[1:0] de?ne the number of character bits, that is, either 5 bits, 6 bits, 7 bits or 8 bits. the word length selected by lcr[1:0] also determine the number of bits that will be used for the special character comparison. bit 0 in the xon-1, xon-2, xoff-1, xoff-2 registers corresponds with the lsb bit for the received character. 6.8 interrupt priority and time-out interrupts the interrupts are enabled by ier[7:0]. care must be taken when handling these interrupts. following a reset, if interrupt enable register (ier) bit 1 = 1, the SC16C852V will issue a transmit holding register interrupt. this interrupt must be serviced prior to continuing operations. the isr indicates the current singular highest priority interrupt only. a condition can exist where a higher priority interrupt masks the lower priority interrupt(s) (see t ab le 14 ). only after servicing the higher pending interrupt will the lower priority interrupt(s) be re?ected in the status register. servicing the interrupt without investigating further interrupt conditions can result in data errors. receive data ready and receive time out have the same interrupt priority (when enabled by ier[0]), and it is important to serve these interrupts correctly. the receiver issues an interrupt after the number of characters have reached the programmed trigger level. in this case, the SC16C852V fifo may hold more characters than the programmed trigger level. following the removal of a data byte, the user should re-check lsr[0] to see if there are any additional characters. a receive time out will not occur if the receive fifo is empty. the time-out counter is reset at the center of each stop bit received or each time the receive holding register (rhr) is read. the actual time-out value is 4 character time, including data information length, start bit, parity bit, and the size of stop bit, that is, 1 , 1.5 , or 2 bit times.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 14 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.9 programmable baud rate generator the SC16C852V uart contains a programmable rational baud rate generator that takes any clock input and divides it by a divisor in the range between 1 and (2 16 - 1). the SC16C852V offers the capability of dividing the input frequency by rational divisor. the fractional part of the divisor is controlled by the clkpres register in the first extra register set. where: n is the integer part of the divisor in dll and dlm registers; m is the fractional part of the divisor in clkpres register; f xtal1 is the clock frequency at xtal1 pin. prescaler = 1 when mcr[7] is set to 0. prescaler = 4 when mcr[7] is set to 1. a single baud rate generator is provided for the transmitter and receiver. the programmable baud rate generator is capable of operating with a frequency of up to 80 mhz. to obtain maximum data rate, it is necessary to use full rail swing on the clock input. the SC16C852V can be con?gured for internal or external clock operation. for internal clock operation, an industry standard crystal is connected externally between the xtal1 and xtal2 pins (see figure 7 ). alternatively, an external clock can be connected to the xtal1 pin (see figure 8 ) to clock the internal baud rate generator for standard or custom rates (see t ab le 6 ). the generator divides the input 16 clock by any divisor from 1 to (2 16 - 1). the SC16C852V divides the basic external clock by 16. the baud rate is con?gured via the clkpres, dll and dlm internal register functions. customized baud rates can be achieved by selecting the proper divisor values for the msb and lsb sections of the baud rate generator. programming the baud rate generator registers clkpres, dlm (msb) and dll (lsb) provides a user capability for selecting the desired ?nal baud rate. the example in t ab le 6 shows the selectable baud rate table available when using a 1.8432 mhz external clock input with mcr[7] is 0, and clkpres = 0x00. fig 6. prescalers and baud rate generator block diagram baud rate f xtal1 mcr 7 [] 16 n m 16 ----- - + ? ?? ------------------------------------------------------------------- - = 002aac645 oscillator xtal1 xtal2 divide-by-1 divide-by-4 clkpres [3:0] baud rate generator (dll, dlm) transmitter and receiver clock mcr[7] = 0 mcr[7] = 1
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 15 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 7. crystal oscillator connection if f xtal1 frequency is greater than 50 mhz, then a dc blocking capacitor is required. xtal2 pin should be left unconnected when an external clock is used. fig 8. external clock connection table 6. baud rate generator programming table using a 1.8432 mhz clock with mcr[7] = 0 and clkpre[3:0] = 0 output baud rate (bit/s) output 16 clock divisor (decimal) output 16 clock divisor (hexadecimal) dlm program value (hexadecimal) dll program value (hexadecimal) 50 2304 900 09 00 75 1536 600 06 00 110 1047 417 04 17 150 768 300 03 00 300 384 180 01 80 600 192 c0 00 c0 1200 96 60 00 60 2400 48 30 00 30 3600 32 20 00 20 4800 24 18 00 18 7200 16 10 00 10 9600 12 0c 00 0c 19.2 k 6 06 00 06 38.4 k 3 03 00 03 57.6 k 2 02 00 02 115.2 k 1 01 00 01 002aaa870 c2 47 pf xtal1 xtal2 x1 1.8432 mhz c1 22 pf c2 33 pf xtal1 xtal2 1.5 k w x1 1.8432 mhz c1 22 pf 002aac630 xtal1 xtal2 100 pf f xtal1
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 16 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.10 dma operation the SC16C852V fifo trigger level provides additional ?exibility to the user for block mode operation. the user can optionally operate the transmit and receive fifos in the dma mode (fcr[3]). the dma mode affects the state of the rxrd yx and txrd yx output pins. t ab le 7 and t ab le 8 show this. remark: dma pins are not available on the tfbga36 package. [1] receive fifo becomes full at 32 bytes when in normal mode. when txintlvl or rxintlvl or flwcnth or flwcntl contains any value other than 0x00 (extended mode) then the receive fifo becomes full at 128 bytes. [1] transmit fifo becomes full at 32 byte when in normal mode. when txintlvl or rxintlvl or flwcnth or flwcntl contains any value other than 0x00 (extended mode) then the transmit fifo becomes full at 128 byte. 6.11 loopback mode the internal loopback capability allows on-board diagnostics. in the loopback mode, the normal modem interface pins are disconnected and recon?gured for loopback internally (see figure 9 ). mcr[3:0] register bits are used for controlling loopback diagnostic testing. in the loopback mode, the transmitter output (txa/txb) and the receiver input (rxa/rxb) are disconnected from their associated interface pins, and instead are connected together internally. the ctsx, dsrx, cdx, and rix are disconnected from their normal modem control inputs pins, and instead are connected internally to r ts, dtr, mcr[3] ( op2a/ op2b) and mcr[2] ( op1a/ op1b). loopback test data is entered into the transmit holding register via the user data bus interface, d[7:0]. the transmit uart serializes the data and passes the serial data to the receive uart via the internal loopback connection. the receive uart converts the serial data back into parallel data that is then made available at the user data interface d[7:0]. the user optionally compares the received data to the initial transmitted data for verifying error-free operation of the uart tx/rx circuits. in this mode the interrupt pins are 3-stated, therefore the software must use polling method (see section 7.2.2 ) to send and receive data. table 7. effect of dma mode on state of rxrd yx pin non-dma mode dma mode 1 = fifo empty 0-to-1 transition when fifo empties 0 = at least 1 byte in fifo 1-to-0 transition when fifo reaches trigger level, or time-out occurs [1] table 8. effect of dma mode on state of txrd yx pin non-dma mode dma mode 1 = at least 1 byte in fifo 0-to-1 transition when fifo becomes full [1] 0 = fifo empty 1-to-0 transition when fifo has at least one empty location
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 17 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 9. internal loopback mode diagram txa, txb rxa, rxb SC16C852V xtal2 xtal1 ad0 to ad7 002aac353 data b u s and control logic register select logic cs interrupt control logic inta, intb clock and baud rate generator interconnect bus lines and control signals modem control logic receive shift register receive fifo register flow control logic flow control logic transmit shift register transmit fifo register ir decoder ir encoder ior iow reset lla power down control lowpwr txrdya, txrdyb rxrdya, rxrdyb ctsa, ctsb rtsa, rtsb dsra, dsrb dtra, dtrb ria, rib cda, cdb (op2a/op2b) mcr[4] = 1 op1a/op1b
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 18 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.12 sleep mode sleep mode is an enhanced feature of the SC16C852V uart. it is enabled when efr[4], the enhanced functions bit, is set and when ier[4] of both channels are set. 6.12.1 conditions to enter sleep mode sleep mode is entered when: ? modem input pins are not toggling. ? the serial data input line, rxa/rxb, is idle for 4 character time (logic high) and afcr1[4] is 0. when afcr1[4] is 1, the device will go to sleep regardless of the state of the rxa/rxb pin (see section 7.21 for the description of afcr1 bit 4). ? the tx fifo and tx shift register are empty. ? there are no interrupts pending. ? the rx fifo is empty. in sleep mode, the uart clock and baud rate clock are stopped. since most registers are clocked using these clocks, the power consumption is greatly reduced. remark: writing to the divisor latches, dll and dlm, to set the baud clock, must not be done during sleep mode. therefore, it is advisable to disable sleep mode using ier[4] before writing to dll or dlm. 6.12.2 conditions to resume normal operation SC16C852V resumes normal operation by any of the following: ? receives a start bit on rxa or rxb pin. ? data is loaded into transmit fifo. ? a change of state on any of the modem input pins. if the device is awakened by one of the conditions described above, it will return to the sleep mode automatically after all the conditions described in section 6.12.1 are met. the device will stay in sleep mode until it is disabled by setting any channels ier bit 4 to a logic 0. when the SC16C852V is in sleep mode and the host interface bus (ad7 to ad0, io w, ior, cs) remains in steady state, either high or low, the sleep current will be in the microampere range as speci?ed in t ab le 38 static char acter istics . if any of these signals is toggling or ?oating then the sleep current will be higher. 6.13 low power feature a low power feature is provided by the SC16C852V to prevent the switching of the host data bus from in?uencing the sleep current. when the pin lowpwr is activated (logic high), the device immediately and unconditionally goes into low power mode. all clocks are stopped and most host interface pins are isolated to reduce power consumption. the device only returns to normal mode when the lowpwr pin is de-asserted. the pin can be left unconnected because it has an internal pull-down resistor.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 19 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.14 rs-485 features 6.14.1 auto rs-485 r ts control normally the r tsx pin is controlled by mcr bit 1, or if hardware ?ow control is enabled, the logic state of the r tsx pin is controlled by the hardware ?ow control circuitry. efcr2 register bit 4 will take the precedence over the other two modes; once this bit is set, the transmitter will control the state of the r tsx pin. the transmitter automatically asserts the r tsx pin (logic 0) once the host writes data to the transmit fifo, and de-asserts the r tsx pin (logic 1) once the last bit of the data has been transmitted. to use the auto rs-485 r ts mode, the software would have to disable the hardware ?ow control function. 6.14.2 rs-485 r ts inversion efcr2 bit 5 reverses the polarity of the r tsx pin if the uart is in auto rs-485 r ts mode. when the transmitter has data to be sent, it will de-assert the r tsx pin (logic 1), and when the last bit of the data has been sent out, the transmitter asserts the r ts pin (logic 0). 6.14.3 auto 9-bit mode (rs-485) efcr2 bit 0 is used to enable the 9-bit mode (multi-drop or rs-485 mode). in this mode of operation, a master station transmits an address character followed by data characters for the addressed slave stations. the slave stations examine the received data and interrupt the controller if the received character is an address character (parity bit = 1). to use the auto 9-bit mode the software would have to disable the hardware and software ?ow control functions. 6.14.3.1 normal multi-drop mode the 9-bit mode in efcr (bit 0) is enabled, but not special character detect (efr bit 5). the receiver is set to force parity 0 (lcr[5:3] = 111) in order to detect address bytes. with the receiver initially disabled, it ignores all the data bytes (parity bit = 0) until an address byte is received (parity bit = 1). this address byte will cause the uart to set the parity error. the uart will generate a line status interrupt (ier bit 2 must be set to 1 at this time), and at the same time puts this address byte in the rx fifo. after the controller examines the byte it must make a decision whether or not to enable the receiver; it should enable the receiver if the address byte addresses its id address, and must not enable the receiver if the address byte does not address its id address. if the controller enables the receiver, the receiver will receive the subsequent data until being disabled by the controller after the controller has received a complete message from the master station. if the controller does not disable the receiver after receiving a message from the master station, the receiver will generate a parity error upon receiving another address byte. the controller then determines if the address byte addresses its id address, if it is not, the controller then can disable the receiver. if the address byte addresses the slave id address, the controller take no further action, the receiver will receive the subsequent data.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 20 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 6.14.3.2 auto address detection if special character detect is enabled (efr[5] is set and the xoff2 register contains the address byte), the receiver will try to detect an address byte that matches the programmed character in the xoff2 register. if the received byte is a data byte or an address byte that does not match the programmed character in the xoff2 register, the receiver will discard these data. upon receiving an address byte that matches the xoff2 character, the receiver will be automatically enabled if not already enabled, and the address character is pushed into the rx fifo along with the parity bit (in place of the parity error bit). the receiver also generates a line status interrupt (ier[2] must be set to logic 1 at this time). the receiver will then receive the subsequent data from the master station until being disabled by the controller after having received a message from the master station. if another address byte is received and this address byte does not match xoff2 character, the receiver will be automatically disabled and the address byte is ignored. if the address byte matches xoff2 character, the receiver will put this byte in the rx fifo along with the parity bit in the parity error bit (lsr bit 2). 7. register descriptions t ab le 9 details the assigned bit functions for the SC16C852V internal registers. the assigned bit functions are more fully de?ned in section 7.1 through section 7.23 .
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 21 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface table 9. SC16C852V internal registers a3 a2 a1 register default [1] bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w general register set [3] 0 0 0 rhr xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r 0 0 0 thr xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 w 0 0 1 ier 00 cts interrupt [2] rts interrupt [2] xoff interrupt [2] sleep mode [2] modem status interrupt receive line status interrupt transmit holding register interrupt receive holding register r/w 0 1 0 fcr 00 rcvr trigger (msb) rcvr trigger (lsb) tx trigger (msb) [2] tx trigger (lsb) [2] dma mode select xmit fifo reset rcvr fifo reset fifos enable w 0 1 0 isr 01 fifos enabled fifos enabled int priority bit 4 int priority bit 3 int priority bit 2 int priority bit 1 int priority bit 0 int status r 0 1 1 lcr 00 divisor latch enable set break set parity even parity parity enable stop bits word length bit 1 word length bit 0 r/w 1 0 0 mcr 00 clock select [2] irda enable reserved loopback op2a, int enable ( op1a) r ts dtr r/w 1 0 1 lsr 60 fifo data error thr and tsr empty thr empty break interrupt framing error parity error overrun error receive data ready r 1 0 1 efcr 00 reserved reserved reserved reserved reserved enable extra feature bit-1 enable extra feature bit-0 enable txlvlcnt/ rxlvlcnt w 1 1 0 msr x0 cd ri dsr cts d cd d ri d dsr d cts r 1 1 1 spr ff bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w special register set [4] 0 0 0 dll xx bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 0 0 1 dlm xx bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w second special register set [6] 0 1 1 txlvlcnt 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 0 0 rxlvlcnt 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 22 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface [1] the value shown in represents the registers initialized hex value; x = not applicable. [2] this bit is only accessible when efr[4] is set. [3] accessible only when lcr[7] is logic 0, and efcr[2:1] are logic 0. [4] baud rate registers accessible only when lcr[7] is logic 1. [5] enhanced feature register, xon1/xon2 and xoff1/xoff2 are accessible only when lcr is set to 0xbf, and efcr[2:1] are logic 0. [6] second special registers are accessible only when efcr[0] = 1, and efcr[2:1] are logic 0. [7] first extra register set is only accessible when efcr[2:1] = 01b. [8] second extra register set is only accessible when efcr[2:1] = 10b. enhanced register set [5] 0 1 0 efr 00 auto cts auto rts special character select enable ier[7:4], isr[5:4], fcr[5:4], mcr[7:5] cont-3 tx, rx control cont-2 tx, rx control cont-1 tx, rx control cont-0 tx, rx control r/w 1 0 0 xon-1 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 0 1 xon-2 00 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w 1 1 0 xoff-1 00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 1 xoff-2 00 bit 15 bit 14 bit 13 bit 12 bit 11 bit 10 bit 9 bit 8 r/w first extra register set [7] 0 1 0 txintlvl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 0 0 rxintlvl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 0 flwcnth 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 1 flwcntl 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w second extra register set [8] 0 1 0 clkpres reserved reserved reserved reserved bit 3 bit 2 bit 1 bit 0 r/w 1 0 0 rs485time 0x00 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w 1 1 0 afcr2 0x00 reserved reserved rs485 rts invert auto rs485 rts rs485 rts/dtr transmitter disable receiver disable 9-bit enable r/w 1 1 1 afcr1 0x00 concurrent write reserved reserved sleep rx low reserved rts/cts mapped to dtr/dsr software reset tsr interrupt r/w table 9. SC16C852V internal registers continued a3 a2 a1 register default [1] bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 r/w
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 23 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.1 transmit (thr) and receive (rhr) holding registers the serial transmitter section consists of an 8-bit transmit hold register (thr) and transmit shift register (tsr). the status of the thr is provided in the line status register (lsr). writing to the thr transfers the contents of the data bus (ad7 to ad0) to the transmit fifo. the thr empty ?ag in the lsr will be set to a logic 1 when the transmit fifo is empty or when data is transferred to the tsr. the serial receive section also contains an 8-bit receive holding register (rhr) and a receive serial shift register (rsr). receive data is removed from the SC16C852V receive fifo by reading the rhr. the receive section provides a mechanism to prevent false starts. on the falling edge of a start or false start bit, an internal receiver counter starts counting clocks at the 16 clock rate. after 7 1 2 clocks, the start bit time should be shifted to the center of the start bit. at this time the start bit is sampled, and if it is still a logic 0 it is validated. evaluating the start bit in this manner prevents the receiver from assembling a false character. receiver status codes will be posted in the lsr. 7.2 interrupt enable register (ier) the interrupt enable register (ier) masks the interrupts from receiver ready, transmitter empty, line status and modem status registers. these interrupts would normally be seen on the inta, intb output pins. table 10. interrupt enable register bits description bit symbol description 7 ier[7] cts interrupt. logic 0 = disable the cts interrupt (normal default condition) logic 1 = enable the cts interrupt. the SC16C852V issues an interrupt when the cts pin transitions from a logic 0 to a logic 1. 6 ier[6] rts interrupt. logic 0 = disable the rts interrupt (normal default condition) logic 1 = enable the rts interrupt. the SC16C852V issues an interrupt when the r ts pin transitions from a logic 0 to a logic 1. 5 ier[5] xoff interrupt. logic 0 = disable the software ?ow control, receive xoff interrupt (normal default condition) logic 1 = enable the receive xoff interrupt 4 ier[4] sleep mode. logic 0 = disable sleep mode (normal default condition) logic 1 = enable sleep mode 3 ier[3] modem status interrupt. this interrupt will be issued whenever there is a modem status change as re?ected in msr[3:0]. logic 0 = disable the modem status register interrupt (normal default condition) logic 1 = enable the modem status register interrupt 2 ier[2] receive line status interrupt. this interrupt will be issued whenever a receive data error condition exists as re?ected in lsr[4:1]. logic 0 = disable the receiver line status interrupt (normal default condition) logic 1 = enable the receiver line status interrupt
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 24 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.2.1 ier versus transmit/receive fifo interrupt mode operation when the receive fifo is enabled (fcr[0] = logic 1), and receive interrupts (ier[0] = logic 1) are enabled, the receive interrupts and register status will re?ect the following: ? the receive rxrdy interrupt (level 2 isr interrupt) is issued to the external cpu when the receive fifo has reached the programmed trigger level. it will be cleared when the receive fifo drops below the programmed trigger level. ? receive fifo status will also be re?ected in the user accessible isr register when the receive fifo trigger level is reached. both the isr register receive status bit and the interrupt will be cleared when the fifo drops below the trigger level. ? the receive data ready bit (lsr[0]) is set as soon as a character is transferred from the shift register (rsr) to the receive fifo. it is reset when the fifo is empty. ? when the transmit fifo and interrupts are enabled, an interrupt is generated when the transmit fifo is empty due to the unloading of the data by the tsr and uart for transmission via the transmission media. the interrupt is cleared either by reading the isr, or by loading the thr with new data characters. 7.2.2 ier versus receive/transmit fifo polled mode operation when fcr[0] = logic 1, setting ier[3:0] = zeroes puts the SC16C852V in the fifo polled mode of operation. in this mode, interrupts are not generated and the user must poll the lsr register for tx and/or rx data status. since the receiver and transmitter have separate bits in the lsr either or both can be used in the polled mode by selecting respective transmit or receive control bit(s). ? lsr[0] will be a logic 1 as long as there is one byte in the receive fifo. ? lsr[4:1] will provide the type of receive errors, or a receive break, if encountered. ? lsr[5] will indicate when the transmit fifo is empty. ? lsr[6] will indicate when both the transmit fifo and transmit shift register are empty. ? lsr[7] will show if any fifo data errors occurred. 1 ier[1] transmit holding register interrupt. in the non-fifo mode, this interrupt will be issued whenever the thr is empty, and is associated with lsr[5]. in the fifo modes, this interrupt will be issued whenever the fifo is empty. logic 0 = disable the transmit holding register empty (txrdy) interrupt (normal default condition) logic 1 = enable the txrdy (isr level 3) interrupt 0 ier[0] receive holding register. in the non-fifo mode, this interrupt will be issued when the rhr has data, or is cleared when the rhr is empty. in the fifo mode, this interrupt will be issued when the fifo has reached the programmed trigger level or is cleared when the fifo drops below the trigger level. logic 0 = disable the receiver ready (isr level 2, rxrdy) interrupt (normal default condition) logic 1 = enable the rxrdy (isr level 2) interrupt table 10. interrupt enable register bits description continued bit symbol description
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 25 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.3 fifo control register (fcr) this register is used to enable the fifos, clear the fifos, set the receive fifo trigger levels, and select the dma mode. 7.3.1 dma mode 7.3.1.1 mode 0 (fcr bit 3 = 0) in this mode, transmit ready ( txrd y) will go to a logic 0 whenever the fifo (thr, if fifo is not enabled) is empty. receive ready ( rxrd y) will go to a logic 0 whenever the receive holding register (rhr) is loaded with a character. 7.3.1.2 mode 1 (fcr bit 3 = 1) in this mode, the transmit ready ( txrd y) is set when the transmit fifo is below the programmed trigger level. the receive ready ( rxrd y) is set when the receive fifo ?lls to the programmed trigger level. however, the fifo continues to ?ll regardless of the programmed level until the fifo is full. rxrd y remains a logic 0 as long as the fifo ?ll level is above the programmed trigger level. 7.3.2 fifo mode table 11. fifo control register bits description bit symbol description 7:6 fcr[7:6] receive trigger level in 32-byte fifo mode. [1] these bits are used to set the trigger level for receive fifo interrupt and ?ow control. the SC16C852V will issue a receive ready interrupt when the number of characters in the receive fifo reaches the selected trigger level. refer to t ab le 12 . 5:4 fcr[5:4] transmit trigger level in 32-byte fifo mode. [2] these bits are used to set the trigger level for the transmit fifo interrupt and ?ow control. the SC16C852V will issue a transmit empty interrupt when the number of characters in fifo drops below the selected trigger level. refer to t ab le 13 . 3 fcr[3] dma mode select. logic 0 = set dma mode 0 (normal default condition) logic 1 = set dma mode 1 transmit operation in mode 0: when the SC16C852V is in the non-fifo mode (fifos disabled; fcr[0] = logic 0) or in the fifo mode (fifos enabled; fcr[0] = logic 1; fcr[3] = logic 0), and when there are no characters in the transmit fifo, the txrd y signal will be a logic 0. once active, the txrd y signal will go to a logic 1 after the ?rst character is loaded into the transmit holding register. receive operation in mode 0: when the SC16C852V is in non-fifo mode, or in the fifo mode (fcr[0] = logic 1; fcr[3] = logic 0) and there is at least one character in the receive fifo, the rxrd y signal will be a logic 0. once active, the rxrd y signal will go to a logic 1 when there are no more characters in the receiver.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 26 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface [1] for 128-byte fifo mode, refer to section 7.16 , section 7.17 , section 7.18 . [2] for 128-byte fifo mode, refer to section 7.15 , section 7.17 , section 7.18 . [1] when rxintlvl or txintlvl or flwcnth or flwcntl contains any value other than 0x00, receive and transmit trigger levels are set by rxintlvl, txintlvl; see section 6.4 fifo oper ation . [1] when rxintlvl or txintlvl or flwcnth or flwcntl contains any value other than 0x00, receive and transmit trigger levels are set by rxintlvl, txintlvl; see section 6.4 fifo oper ation . 3 (cont.) transmit operation in mode 1: when the SC16C852V is in fifo mode (fcr[0] = logic 1; fcr[3] = logic 1), the txrd y signal will be a logic 1 when the transmit fifo is completely full, see section 6.10 dma oper ation . it will be a logic 0 when the trigger level has been reached. receive operation in mode 1: when the SC16C852V is in fifo mode (fcr[0] = logic 1; fcr[3] = logic 1) and the trigger level has been reached, or a receive time-out has occurred, the rxrd y signal will go to a logic 0. once activated, it will go to a logic 1 after there are no more characters in the fifo. 2 fcr[2] xmit fifo reset. logic 0 = no fifo transmit reset (normal default condition) logic 1 = clears the contents of the transmit fifo and resets the fifo counter logic. this bit will return to a logic 0 after clearing the fifo. 1 fcr[1] rcvr fifo reset. logic 0 = no fifo receive reset (normal default condition) logic 1 = clears the contents of the receive fifo and resets the fifo counter logic. this bit will return to a logic 0 after clearing the fifo. 0 fcr[0] fifo enable. logic 0 = disable the transmit and receive fifo (normal default condition) logic 1 = enable the transmit and receive fifo table 12. rcvr trigger levels fcr[7] fcr[6] rx fifo trigger level in 32-byte fifo mode [1] 0 0 8 bytes 0 1 16 bytes 1 0 24 bytes 1 1 28 bytes table 13. tx fifo trigger levels fcr[5] fcr[4] tx fifo trigger level in 32-byte fifo mode [1] 0 0 16 bytes 0 1 8 bytes 1 0 24 bytes 1 1 30 bytes table 11. fifo control register bits description continued bit symbol description
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 27 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.4 interrupt status register (isr) the SC16C852V provides six levels of prioritized interrupts to minimize external software interaction. the interrupt status register (isr) provides the user with six interrupt status bits. performing a read cycle on the isr will provide the user with the highest pending interrupt level to be serviced. no other interrupts are acknowledged until the pending interrupt is serviced. a lower level interrupt may be seen after servicing the higher level interrupt and re-reading the interrupt status bits. t ab le 14 interr upt source shows the data values (bits 5:0) for the six prioritized interrupt levels and the interrupt sources associated with each of these interrupt levels. table 14. interrupt source priority level isr[5] isr[4] isr[3] isr[2] isr[1] isr[0] source of the interrupt 1 0 0 0 1 1 0 lsr (receiver line status register) 2 0 0 0 1 0 0 rxrdy (received data ready) 2 0 0 1 1 0 0 rxrdy (receive data time-out) 3 0 0 0 0 1 0 txrdy (transmitter holding register empty) 4 0 0 0 0 0 0 msr (modem status register) 5 0 1 0 0 0 0 rxrdy (received xoff signal)/ special character 6 1 0 0 0 0 0 cts, rts change of state table 15. interrupt status register bits description bit symbol description 7:6 isr[7:6] fifos enabled. these bits are set to a logic 0 when the fifos are not being used in the non-fifo mode. they are set to a logic 1 when the fifos are enabled in the SC16C852V mode. logic 0 or cleared = default condition 5:4 isr[5:4] int priority bits 4:3. these bits are enabled when efr[4] is set to a logic 1. isr[4] indicates that matching xoff character(s) have been detected. isr[5] indicates that cts, rts have been generated. note that once set to a logic 1, the isr[4] bit will stay a logic 1 until xon character(s) are received. logic 0 or cleared = default condition 3:1 isr[3:1] int priority bits 2:0. these bits indicate the source for a pending interrupt at interrupt priority levels 1, 2, and 3 (see t ab le 14 ). logic 0 or cleared = default condition 0 isr[0] int status. logic 0 = an interrupt is pending and the isr contents may be used as a pointer to the appropriate interrupt service routine logic 1 = no interrupt pending (normal default condition)
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 28 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.5 line control register (lcr) the line control register is used to specify the asynchronous data communication format. the word length, the number of stop bits, and the parity are selected by writing the appropriate bits in this register. table 16. line control register bits description bit symbol description 7 lcr[7] divisor latch enable. the internal baud rate counter latch and enhanced feature mode enable. logic 0 = divisor latch disabled (normal default condition) logic 1 = divisor latch enabled 6 lcr[6] set break. when enabled, the break control bit causes a break condition to be transmitted (the tx output is forced to a logic 0 state). this condition exists until disabled by setting lcr[6] to a logic 0. logic 0 = no tx break condition (normal default condition) logic 1 = forces the transmitter output (tx) to a logic 0 for alerting the remote receiver to a line break condition 5:3 lcr[5:3] programs the parity conditions (see t ab le 17 ). 2 lcr[2] stop bits. the length of stop bit is speci?ed by this bit in conjunction with the programmed word length (see t ab le 18 ). logic 0 or cleared = default condition 1:0 lcr[1:0] word length bits 1, 0. these two bits specify the word length to be transmitted or received (see t ab le 19 ). logic 0 or cleared = default condition table 17. lcr[5:3] parity selection lcr[5] lcr[4] lcr[3] parity selection x x 0 no parity x 0 1 odd parity 0 1 1 even parity 0 0 1 forced parity 1 1 1 1 forced parity 0 table 18. lcr[2] stop bit length lcr[2] word length (bits) stop bit length (bit times) 0 5, 6, 7, 8 1 15 1 1 2 1 6, 7, 8 2 table 19. lcr[1:0] word length lcr[1] lcr[0] word length (bits) 00 5 01 6 10 7 11 8
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 29 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.6 modem control register (mcr) this register controls the interface with the modem or a peripheral device. table 20. modem control register bits description bit symbol description 7 mcr[7] clock select logic 0 = divide-by-1 clock input logic 1 = divide-by-4 clock input 6 mcr[6] ir enable (see figure 21 ). logic 0 = enable the standard modem receive and transmit input/output interface (normal default condition) logic 1 = enable infrared irda receive and transmit inputs/outputs. while in this mode, the tx/rx output/inputs are routed to the infrared encoder/decoder. the data input and output levels will conform to the irda infrared interface requirement. as such, while in this mode, the infrared tx output will be a logic 0 during idle data conditions. 5 mcr[5] reserved; set to 0. 4 mcr[4] loopback. enable the local loopback mode (diagnostics). in this mode the transmitter output ( tx) and the receiver input ( rx), cts, dsr, cd, and ri are disconnected from the SC16C852V i/o pins. internally the modem data and control pins are connected into a loopback data con?guration (see figure 9 ). in this mode, the receiver and transmitter interrupts remain fully operational. the modem control interrupts are also operational, but the interrupts sources are switched to the lower four bits of the modem control. interrupts continue to be controlled by the ier register. logic 0 = disable loopback mode (normal default condition) logic 1 = enable local loopback mode (diagnostics) 3 mcr[3] op2a/ op2b, int enable logic 0 = forces int (a, b) outputs to the 3-state mode and sets op2a/ op2b to a logic 1 (normal default condition) logic 1 = forces the int (a, b) outputs to the active mode and sets op2a/ op2b to a logic 0 remark: op2a/ op2b pins do not exist on the tfbga36 package. 2 mcr[2] op1a/ op1b are not available as an external signal in the SC16C852V. this bit is instead used in the loopback mode only. in the loopback mode, this bit is used to write the state of the modem ri interface signal. 1 mcr[1] r ts logic 0 = force r ts output to a logic 1 (normal default condition) logic 1 = force r ts output to a logic 0 0 mcr[0] dtr logic 0 = force dtr output to a logic 1 (normal default condition) logic 1 = force dtr output to a logic 0 table 21. interrupt output control mcr[3] int (a, b) output 0 3-state 1 active
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 30 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.7 line status register (lsr) this register provides the status of data transfers between the SC16C852V and the cpu. table 22. line status register bits description bit symbol description 7 lsr[7] fifo data error. logic 0 = no error (normal default condition) logic 1 = at least one parity error, framing error or break indication is in the current fifo data. this bit is cleared when there are no remaining error ?ags associated with the remaining data in the fifo. 6 lsr[6] thr and tsr empty. this bit is the transmit empty indicator. this bit is set to a logic 1 whenever the transmit holding register and the transmit shift register are both empty. it is reset to logic 0 whenever either the thr or tsr contains a data character. in the fifo mode, this bit is set to logic 1 whenever the transmit fifo and transmit shift register are both empty. 5 lsr[5] thr empty. this bit is the transmit holding register empty indicator. this bit indicates that the uart is ready to accept a new character for transmission. in addition, this bit causes the uart to issue an interrupt to cpu when the thr interrupt enable is set. the thr bit is set to a logic 1 when a character is transferred from the transmit holding register into the transmitter shift register. the bit is reset to a logic 0 concurrently with the loading of the transmitter holding register by the cpu. in the fifo mode, this bit is set when the transmit fifo is empty; it is cleared when at least 1 byte is written to the transmit fifo. 4 lsr[4] break interrupt. logic 0 = no break condition (normal default condition) logic 1 = the receiver received a break signal (rx was a logic 0 for one character frame time). in the fifo mode, only one break character is loaded into the fifo. 3 lsr[3] framing error. logic 0 = no framing error (normal default condition) logic 1 = framing error. the receive character did not have a valid stop bit(s). in the fifo mode, this error is associated with the character at the top of the fifo. 2 lsr[2] parity error. logic 0 = no parity error (normal default condition logic 1 = parity error. the receive character does not have correct parity information and is suspect. in the fifo mode, this error is associated with the character at the top of the fifo. 1 lsr[1] overrun error. logic 0 = no overrun error (normal default condition) logic 1 = overrun error. a data overrun error occurred in the receive shift register. this happens when additional data arrives while the fifo is full. in this case, the previous data in the shift register is overwritten. note that under this condition, the data byte in the receive shift register is not transferred into the fifo, therefore the data in the fifo is not corrupted by the error. 0 lsr[0] receive data ready. logic 0 = no data in receive holding register or fifo (normal default condition) logic 1 = data has been received and is saved in the receive holding register or fifo
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 31 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.8 modem status register (msr) this register shares the same address as efcr register. this is a read-only register and it provides the current state of the control interface signals from the modem, or other peripheral device to which the SC16C852V is connected. four bits of this register are used to indicate the changed information. these bits are set to a logic 1 whenever a control input from the modem changes state. these bits are set to a logic 0 whenever the cpu reads this register. when write, the data will be written to efcr register. [1] whenever any msr bit 3:0 is set to logic 1, a modem status interrupt will be generated. table 23. modem status register bits description bit symbol description 7 msr[7] cd. during normal operation, this bit is the complement of the cd input. reading this bit in the loopback mode produces the state of mcr[3] ( op2a/ op2b). 6 msr[6] ri. during normal operation, this bit is the complement of the ri input. reading this bit in the loopback mode produces the state of mcr[2] ( op1a/ op1b). 5 msr[5] dsr. during normal operation, this bit is the complement of the dsr input. during the loopback mode, this bit is equivalent to mcr[0] ( dtr). 4 msr[4] cts. during normal operation, this bit is the complement of the cts input. during the loopback mode, this bit is equivalent to mcr[1] ( r ts). 3 msr[3] d cd [1] logic 0 = no cd change (normal default condition) logic 1 = the cd input to the SC16C852V has changed state since the last time it was read. a modem status interrupt will be generated. 2 msr[2] d ri [1] logic 0 = no ri change (normal default condition) logic 1 = the ri input to the SC16C852V has changed from a logic 0 to a logic 1. a modem status interrupt will be generated. 1 msr[1] d dsr [1] logic 0 = no dsr change (normal default condition) logic 1 = the dsr input to the SC16C852V has changed state since the last time it was read. a modem status interrupt will be generated. 0 msr[0] d cts [1] logic 0 = no cts change (normal default condition) logic 1 = the cts input to the SC16C852V has changed state since the last time it was read. a modem status interrupt will be generated.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 32 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.9 extra feature control register (efcr) this is a write-only register, and it allows the software access to these registers: first extra register set, second extra register set, transmit fifo level counter (txlvlcnt), and receive fifo level counter (rxlvlcnt). remark: efcr[2:1] has higher priority than efcr[0]. txlvlcnt and rxlvlcnt can only be accessed if efcr[2:1] are zeroes. 7.10 scratchpad register (spr) the SC16C852V provides a temporary data register to store 8 bits of user information. 7.11 division latch (dll and dlm) these are two 8-bit registers which store the 16-bit divisor for generation of the baud clock in the baud rate generator. dlm stores the most signi?cant part of the divisor. dll stores the least signi?cant part of the divisor. 7.12 transmit fifo level count (txlvlcnt) this register is a read-only register. it reports the number of spaces available in the transmit fifo. 7.13 receive fifo level count (rxlvlcnt) this register is a read-only register. it reports the ?ll level of the receive fifo (the number of characters in the rxfifo). table 24. extra feature control register bits description bit symbol description 7:3 efcr[7:3] reserved 2:1 efcr[2:1] enable extra feature control bits 00 = general register set is accessible 01 = first extra register set is accessible 10 = second extra register set is accessible 11 = reserved 0 efcr[0] enable txlvlcnt and rxlvlcnt access 0 = txlvlcnt and rxlvlcnt are disabled 1 = txlvlcnt and rxlvlcnt are enabled and can be read
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 33 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.14 enhanced feature register (efr) enhanced features are enabled or disabled using this register. bit 0 through bit 4 provide single or dual character software ?ow control selection. when the xon1 and xon2 and/or xoff1 and xoff2 modes are selected, the double 8-bit words are concatenated into two sequential numbers. [1] enhanced function control bits: ier[7:4], isr[5:4], fcr[5:4] and mcr[7:5]. table 25. enhanced feature register bits description bit symbol description 7 efr[7] automatic cts ?ow control. logic 0 = automatic cts ?ow control is disabled (normal default condition) logic 1 = enable automatic cts ?ow control. transmission will stop when cts goes to a logical 1. transmission will resume when the cts signal returns to a logical 0. 6 efr[6] automatic rts ?ow control. automatic rts may be used for hardware ?ow control by enabling efr[6]. when auto-rts is selected, an interrupt will be generated when the receive fifo is ?lled to the programmed trigger level and r ts will go to a logic 1 at the next trigger level. r ts will return to a logic 0 when data is unloaded below the next lower trigger level (programmed trigger level 1). the state of this register bit changes with the status of the hardware ?ow control. r ts functions normally when hardware ?ow control is disabled. logic 0 = automatic rts ?ow control is disabled (normal default condition) logic 1 = enable automatic rts ?ow control 5 efr[5] special character detect. logic 0 = special character detect disabled (normal default condition) logic 1 = special character detect enabled. the SC16C852V compares each incoming receive character with xoff2 data. if a match exists, the received data will be transferred to fifo and isr[4] will be set to indicate detection of special character. bit-0 in the x-registers corresponds with the lsb bit for the receive character. when this feature is enabled, the normal software ?ow control must be disabled (efr[3:0] must be set to a logic 0). 4 efr[4] enhanced function control bit. the content of ier[7:4], isr[5:4], fcr[5:4], and mcr[7:5] can be modi?ed and latched. after modifying any bits in the enhanced registers, efr[4] can be set to a logic 0 to latch the new values. this feature prevents existing software from altering or overwriting the SC16C852V enhanced functions. logic 0 = disable/latch enhanced features [1] logic 1 = enables the enhanced functions [1] . when this bit is set to a logic 1, all enhanced features of the SC16C852V are enabled and user settings stored during a reset will be restored. 3:0 efr[3:0] cont-3:0 tx, rx control. logic 0 or cleared is the default condition. combinations of software ?ow control can be selected by programming these bits. see t ab le 26 . table 26. software ?ow control functions [1] cont-3 cont-2 cont-1 cont-0 tx, rx software ?ow controls 0 0 x x no transmit ?ow control 1 0 x x transmit xon1/xoff1 0 1 x x transmit xon2/xoff2
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 34 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface [1] when using a software ?ow control the xon/xoff characters cannot be used for data transfer. 7.15 transmit interrupt level register (txintlvl) this 8-bit register is used store the transmit fifo trigger levels used for dma and interrupt generation. trigger levels from 1 to 128 can be programmed with a granularity of 1. t ab le 27 shows trigger level register bit settings. [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.16 receive interrupt level register (rxintlvl) this 8-bit register is used store the receive fifo trigger levels used for dma and interrupt generation. trigger levels from 1 to 128 can be programmed with a granularity of 1. t ab le 28 shows trigger level register bit settings. [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 1 1 x x transmit xon1 and xon2/xoff1 and xoff2 x x 0 0 no receive ?ow control x x 1 0 receiver compares xon1/xoff1 x x 0 1 receiver compares xon2/xoff2 1011tr ansmit xon1/xoff1 receiver compares xon1 or xon2, xoff1 or xoff2 0111tr ansmit xon2/xoff2 receiver compares xon1 or xon2, xoff1 or xoff2 1111tr ansmit xon1 and xon2, xoff1 and xoff2 receiver compares xon1 and xon2, xoff1 and xoff2 table 26. software ?ow control functions [1] continued cont-3 cont-2 cont-1 cont-0 tx, rx software ?ow controls table 27. txintlvl register bits description bit symbol description 7:0 txintlvl[7:0] this register stores the programmable transmit interrupt trigger levels for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 28. rxintlvl register bits description bit symbol description 7:0 rxintlvl[7:0] this register stores the programmable receive interrupt trigger levels for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 35 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.17 flow control trigger level high (flwcnth) this 8-bit register is used to store the receive fifo high threshold levels to start/stop transmission during hardware/software ?ow control. t ab le 29 shows transmission control register bit settings; see section 6.5 . [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.18 flow control trigger level low (flwcntl) this 8-bit register is used to store the receive fifo low threshold levels to start/stop transmission during hardware/software ?ow control. t ab le 30 shows transmission control register bit settings; see section 6.5 . [1] for 32-byte fifo mode, refer to section 7.3 fifo control register (fcr) . 7.19 clock prescaler (clkpres) this register hold values for the clock prescaler. table 29. flwcnth register bits description bit symbol description 7:0 flwcnth[7:0] this register stores the programmable high threshold level for hardware and software ?ow control for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 30. flwcntl register bits description bit symbol description 7:0 flwcntl[7:0] this register stores the programmable low threshold level for hardware and software ?ow control for 128-byte fifo mode. [1] 0x00 = trigger level is set to 1 0x01 = trigger level is set to 1 ... 0x80 = trigger level is set to 128 table 31. clock prescaler register description bit symbol description 7:4 clkpres[7:4] reserved 3:0 clkpres[3:0] clock prescaler value; reset to 0
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 36 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.20 rs-485 turn-around time delay (rs485time) the value in this register controls the turn-around time of the external line transceiver in bit time. in automatic 9-bit mode, the r tsa/ r tsb or dtra/ dtrb pin is used to control the direction of the line driver, after the last bit of data has been shifted out of the transmit shift register the uart will count down the value in this register. when the count value reaches zero, the uart will assert the r tsa/ r tsb or dtra/ dtrb pin (logic 0) to turn the external rs-485 transceiver around for receiving. 7.21 advanced feature control register 1 (afcr1) [1] it takes 4 xtal1 clocks to reset the device. table 32. rs-485 programmable turn-around time register bit symbol description 7:0 rs485time[7:0] external rs-485 transceiver turn-around time delay. the value represents the bit time at the programmed baud rate. table 33. advanced feature control register 1 bits description bit symbol description 7 afcr1[7] concurrent write. when this bit is set the host can write concurrently to the same register of all channels. 0 = normal operation 1 = concurrent write operation 6:5 afcr1[6:5] reserved 4 afcr1[4] sleep rxlow. program rx input to be edge-sensitive or level-sensitive. 0 = rx input is level sensitive. if rxa/rxb pin is low, the uart will not go to sleep. once the uart is in sleep mode, it will wake up if rxa/rxb pin goes low. 1 = rx input is edge sensitive. uart will go to sleep even if rxa/rxb pin is low, and will wake up when rxa/rxb pin toggles. 3 afcr1[3] reserved 2 afcr1[2] rts/cts mapped to dtr/dsr. switch the function of rts/cts to dtr/dsr. 0 = rts and cts signals are used for hardware ?ow control 1 = dtr and dsr signals are used for hardware ?ow control. rts and cts retain their functionality. 1 afcr1[1] sreset. software reset. a write to this bit will reset the uart. once the uart is reset this bit is automatically set to 0. [1] 0 afcr1[0] tsr interrupt. select tsr interrupt mode. 0 = transmit empty interrupt occurs when transmit fifo falls below the trigger level or becomes empty. 1 = transmit empty interrupt occurs when transmit fifo fall below the trigger level, or becomes empty and the last stop bit has been shift out the transmit shift register.
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 37 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.22 advanced feature control register 2 (afcr2) table 34. advanced feature control register 2 bits description bit symbol description 7:6 afcr2[7:6] reserved 5 afcr2[5] rtsinvert. invert rts or dtr signal in auto 9-bit mode. 0 = rts or dtr is set to 0 by the uart during transmission, and to 1 during reception 1 = rts or dtr is set to 1 by the uart during transmission, and to 0 during reception 4 afcr2[4] rtscon. enable the transmitter to control rts or dtr signal in auto 9-bit mode. 0 = transmitter does not control rts or dtr signal 1 = transmitter controls rts or dtr signal 3 afcr2[3] rs485 rts/dtr. select r tsa/ r tsb or dtra/ dtrb pin to control the external transceiver. 0 = r tsa/ r tsb pin is used to control the external transceiver 1 = dtra/ dtrb pin is used to control the external transceiver 2 afcr2[2] txdisable. disable transmitter. 0 = transmitter is enabled 1 = transmitter is disabled 1 afcr2[1] rxdisable. disable receiver. 0 = receiver is enabled 1 = receiver is disabled 0 afcr2[0] 9-bitmode. enable 9-bit mode or multidrop (rs-485) mode. 0 = normal rs-232 mode 1 = enable 9-bit mode
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 38 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 7.23 SC16C852V external reset condition and software reset these two reset methods are identical and will reset the internal registers as indicated in t ab le 35 . table 35. reset state for registers register reset state ier ier[7:0] = 0 fcr fcr[7:0] = 0 isr isr[7:1] = 0; isr[0] = 1 lcr lcr[7:0] = 0 mcr mcr[7:0] = 0 lsr lsr[7] = 0; lsr[6:5] = 1; lsr[4:0] = 0 msr msr[7:4] = input signals; msr[3:0] = 0 efcr efcr[7:0] = 0 spr spr[7:0] = 1 dll unde?ned dlm unde?ned txlvlcnt txlvlcnt[7:0] = 0 rxlvlcnt rxlvlcnt[7:0] = 0 efr efr[7:0] = 0 xon1 unde?ned xon2 unde?ned xoff1 unde?ned xoff2 unde?ned txintlvl txintlvl[7:0] = 0 rxintlvl rxintlvl[7:0] = 0 flwcnth flwcnth[7:0] = 0 flwcntl flwcntl[7:0] = 0 clkpres clkpres[7:0] = 0 rs485time rs485time[7:0] = 0 afcr2 afcr2[7:0] = 0 afcr1 afcr1[7:0] = 0 table 36. reset state for outputs output reset state txa, txb logic 1 op2a, op2b logic 1 r tsa, r tsb logic 1 dtra, dtrb logic 1 inta, intb 3-state condition
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 39 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 8. limiting values [1] v n should not exceed 2.5 v. 9. static characteristics [1] except xtal2, v ol = 1 v typical. [2] sleep current might be higher if there is any activity on the uart data bus during sleep mode. [3] activate by lowpwr pin. table 37. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v dd supply voltage - 2.5 v v n voltage on any other pin [1] v ss - 0.3 v dd + 0.3 v t amb ambient temperature operating in free air - 40 +85 c t stg storage temperature - 65 +150 c p tot /pack total power dissipation per package - 500 mw table 38. static characteristics t amb = - 40 c to +85 c; v dd = 1.65 v to 1.95 v; unless otherwise speci?ed. symbol parameter conditions min typ max unit v il(clk) low-level clock input voltage - - 0.25 v v ih(clk) high-level clock input voltage 1.35 - - v v il low-level input voltage except x1 clock - - 0.45 v v ih high-level input voltage except x1 clock 1.35 - - v v ol low-level output voltage i ol =2ma [1] - - 0.35 v v oh high-level output voltage i oh = - 800 m a 1.45 - - v i lil low-level input leakage current --1 m a i lih high-level input leakage current --1 m a i l(clk) clock leakage current low-level - - 30 m a high-level - - 30 m a i dd supply current f = 5 mhz - - 2 ma i dd(sleep) sleep mode supply current [2] --5 m a i dd(lp) low-power mode supply current [3] --5 m a c i input capacitance - - 5 pf
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 40 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 10. dynamic characteristics [1] external clock only; maximum crystal frequency is 24 mhz. [2] rclk is an internal frequency and it is equal to 16 times the baud rate. [3] 10 % of the data bus fall or rise time. table 39. dynamic characteristics t amb = - 40 c to +85 c; v dd = 1.65 v to 1.95 v; unless otherwise speci?ed. symbol parameter conditions min typ max unit f xtal oscillator/clock frequency [1] - - 80 mhz t d(cs-lla) delay time from cs to lla 10 - - ns t su(a-llal) setup time from address to lla low 5 - - ns t w(lla) lla pulse width time 10 - - ns t h(llah-a) address hold time after lla high 10 - - ns t d(iow) io w delay time 10 - - ns t d(ior-dv) delay time from ior to data valid 25 pf load - - 15 ns t w(ior) ior pulse width time 20 - - ns t d(llah-iorl) delay time from lla high to ior low 10 - - ns t w(iow) io w pulse width time 10 - - ns t h(iowh-d) data input hold time after io w high 5 - - ns t d(llah-iowl) delay time from lla high to io w low 10 - - ns t su(d-iowh) data setup time from data input to io w high 5 - - ns t d(ior) ior delay time 10 - - ns t dis(ior-qz) disable time from ior to high-impedance data output [3] 25 pf load - - 15 ns t d(iow-q) delay time from io w to data output 25 pf load - - 50 ns t d(modem-int) delay time from modem to int 25 pf load - - 50 ns t d(ior-intl) delay time from ior to int low 25 pf load - - 50 ns t wh pulse width high 6 - - ns t wl pulse width low 6 - - ns t w(clk) clock pulse width 12.5 - - ns t d(stop-int) delay time from stop to int 25 pf load [2] --1t rclk s t d(stop-rxrdy) delay time from stop to rxrd y 25 pf load [2] --1t rclk s t d(ior-rxrdyh) delay time from ior to rxrd y high 25 pf load - - 50 ns t d(start-int) delay time from start to int 25 pf load - - 1t rclk s t d(iow-tx) delay time from io w to tx [2] 8t rclk - 24t rclk s t d(iow-intl) delay time from io w to int low 25 pf load - - 50 ns t d(iow-txrdyh) delay time from io w to txrd y high 25 pf load - - 50 ns t d(start-txrdy) delay time from start to txrd y 25 pf load [2] --8t rclk s t w(reset_n) pulse width on pin reset 10 - - ns
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 41 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 10.1 timing diagrams fig 10. general write timing upper address 002aac354 ad7 to ad0 cs lla iow lower address data t w(lla) t su(a-lla) t h(llah-a) t d(cs-lla) t w(iow) t d(iow) t su(d-iowh) t h(iowh-d) t d(llah-iowl) fig 11. general read timing upper address 002aac355 ad7 to ad0 cs lla ior lower address data t w(lla) t su(a-lla) t h(llah-a) t w(ior) t d(ior-dv) t d(ior) t dis(ior-qz) t d(llah-iorl) t d(cs-lla)
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 42 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 12. modem input/output timing t d(iow-q) change of state t d(ior-intl) 002aac356 t d(modem-int) change of state change of state change of state active active active active active active active change of state rtsa, rtsb dtra, dtrb iow cda, cdb ctsa, ctsb dsra, dsrb inta, intb ior ria, rib t d(modem-int) t d(modem-int) fig 13. external clock timing external clock 002aac357 t w(clk) t wl t wh f xtal 1 t wclk () --------------- =
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 43 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 14. receive timing d0 d1 d2 d3 d4 d5 d6 d7 active active 16 baud rate clock 002aac358 rxa, rxb inta, intb ior t d(ior-intl) t d(stop-int) 5 data bits 6 data bits 7 data bits stop bit parity bit start bit data bits (0 to 7) next data start bit fig 15. receive ready timing in non-fifo mode d0 d1 d2 d3 d4 d5 d6 d7 002aac359 next data start bit stop bit parity bit t d(stop-rxrdy) rxa, rxb rxrdya ior active data ready start bit data bits (0 to 7) active t d(ior-rxrdyh) rxrdyb
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 44 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 16. receive ready timing in fifo mode d0 d1 d2 d3 d4 d5 d6 d7 002aac360 first byte that reaches the trigger level stop bit parity bit t d(stop-rxrdy) rxa, rxb rxrdya ior active data ready start bit data bits (0 to 7) active t d(ior-rxrdyh) rxrdyb fig 17. transmit timing active transmitter ready active 16 baud rate clock 002aac361 t d(iow-intl) inta, intb iow active d0 d1 d2 d3 d4 d5 d6 d7 txa, txb 5 data bits 6 data bits 7 data bits stop bit parity bit start bit data bits (0 to 7) next data start bit t d(start-int) t d(iow-tx)
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 45 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 18. transmit ready timing in non-fifo mode d0 d1 d2 d3 d4 d5 d6 d7 002aac362 stop bit parity bit t d(iow-txrdyh) txa, txb iow ad0 to ad7 active transmitter ready start bit data bits (0 to 7) next data start bit byte #1 txrdya t d(start-txrdy) transmitter not ready active txrdyb fig 19. transmit ready timing in fifo mode (dma mode 1) d0 d1 d2 d3 d4 d5 d6 d7 002aac363 stop bit parity bit t d(iow-txrdyh) txa, txb iow ad0 to ad7 start bit data bits (0 to 7) byte #32 or byte #128 txrdya t d(start-txrdy) fifo full active 5 data bits 6 data bits 7 data bits txrdyb
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 46 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 20. infrared transmit timing fig 21. infrared receive timing 01010011 1 0 uart frame tx data 1 / 2 bit time 002aaa212 data bits start stop bit time irda tx data 3 / 16 bit time 01010011 1 0 uart frame rx data irda rx data bit time 002aaa213 start data bits stop 0 to 1 16 clock delay
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 47 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 11. package outline fig 22. package outline sot778-3 (hvqfn48) terminal 1 index area terminal 1 index area references outline version european projection issue date iec jedec jeita sot778-3 - - - - - - - - - sot778-3 04-06-16 04-06-23 note 1. plastic or metal protrusions of 0.075 mm maximum per side are not included dimensions (mm are the original dimensions) hvqfn48: plastic thermal enhanced very thin quad flat package; no leads; 48 terminals; body 6 x 6 x 0.85 mm detail x e h d h l a c a 1 b d e b c a 12 13 24 48 37 1 25 36 e 2 e 1 e e 1/2 e 1/2 e a c b v m c w m y c y 1 x 0 2.5 5 mm scale unit mm 0.05 0.00 0.25 0.15 6.1 5.9 6.1 5.9 3.95 3.65 0.5 0.3 a 1 b 1 a (1) max d (1) e (1) e h 3.95 3.65 d h ee 1 l v 0.1 4.4 e 2 4.4 0.4 c 0.2 w 0.05 y 0.05 y 1 0.1
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 48 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface fig 23. package outline sot912-1 (tfbga36) references outline version european projection issue date iec jedec jeita sot912-1 sot912-1 05-08-09 05-09-01 unit a max mm 1.15 0.25 0.15 0.90 0.75 0.35 0.25 3.6 3.4 3.6 3.4 a 1 dimensions (mm are the original dimensions) tfbga36: plastic thin fine-pitch ball grid array package; 36 balls; body 3.5 x 3.5 x 0.8 mm 0 2.5 5 mm scale a 2 b d e e 2 2.5 e 0.5 e 1 2.5 y 1 0.1 v 0.15 w 0.05 y 0.08 - - - - - - - - - b e 2 e 1 e e 1/2 e 1/2 e a c b v m c w m ball a1 index area a b c d e f 246 135 ball a1 index area b a e d c y c y 1 x detail x a 1 a 2 a
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 49 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 12. soldering this text provides a very brief insight into a complex technology. a more in-depth account of soldering ics can be found in application note an10365 surface mount re?ow soldering description . 12.1 introduction to soldering soldering is one of the most common methods through which packages are attached to printed circuit boards (pcbs), to form electrical circuits. the soldered joint provides both the mechanical and the electrical connection. there is no single soldering method that is ideal for all ic packages. wave soldering is often preferred when through-hole and surface mount devices (smds) are mixed on one printed wiring board; however, it is not suitable for ?ne pitch smds. re?ow soldering is ideal for the small pitches and high densities that come with increased miniaturization. 12.2 wave and re?ow soldering wave soldering is a joining technology in which the joints are made by solder coming from a standing wave of liquid solder. the wave soldering process is suitable for the following: ? through-hole components ? leaded or leadless smds, which are glued to the surface of the printed circuit board not all smds can be wave soldered. packages with solder balls, and some leadless packages which have solder lands underneath the body, cannot be wave soldered. also, leaded smds with leads having a pitch smaller than ~0.6 mm cannot be wave soldered, due to an increased probability of bridging. the re?ow soldering process involves applying solder paste to a board, followed by component placement and exposure to a temperature pro?le. leaded packages, packages with solder balls, and leadless packages are all re?ow solderable. key characteristics in both wave and re?ow soldering are: ? board speci?cations, including the board ?nish, solder masks and vias ? package footprints, including solder thieves and orientation ? the moisture sensitivity level of the packages ? package placement ? inspection and repair ? lead-free soldering versus pbsn soldering 12.3 wave soldering key characteristics in wave soldering are: ? process issues, such as application of adhesive and ?ux, clinching of leads, board transport, the solder wave parameters, and the time during which components are exposed to the wave ? solder bath speci?cations, including temperature and impurities
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 50 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 12.4 re?ow soldering key characteristics in re?ow soldering are: ? lead-free versus snpb soldering; note that a lead-free re?ow process usually leads to higher minimum peak temperatures (see figure 24 ) than a pbsn process, thus reducing the process window ? solder paste printing issues including smearing, release, and adjusting the process window for a mix of large and small components on one board ? re?ow temperature pro?le; this pro?le includes preheat, re?ow (in which the board is heated to the peak temperature) and cooling down. it is imperative that the peak temperature is high enough for the solder to make reliable solder joints (a solder paste characteristic). in addition, the peak temperature must be low enough that the packages and/or boards are not damaged. the peak temperature of the package depends on package thickness and volume and is classi?ed in accordance with t ab le 40 and 41 moisture sensitivity precautions, as indicated on the packing, must be respected at all times. studies have shown that small packages reach higher temperatures during re?ow soldering, see figure 24 . table 40. snpb eutectic process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 3 350 < 2.5 235 220 3 2.5 220 220 table 41. lead-free process (from j-std-020c) package thickness (mm) package re?ow temperature ( c) volume (mm 3 ) < 350 350 to 2000 > 2000 < 1.6 260 260 260 1.6 to 2.5 260 250 245 > 2.5 250 245 245
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 51 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface for further information on temperature pro?les, refer to application note an10365 surface mount re?ow soldering description . 13. abbreviations msl: moisture sensitivity level fig 24. temperature pro?les for large and small components 001aac844 temperature time minimum peak temperature = minimum soldering temperature maximum peak temperature = msl limit, damage level peak temperature table 42. abbreviations acronym description cpu central processing unit dll divisor latch lsb dlm divisor latch msb dma direct memory access fifo first in, first out irda infrared data association isdn integrated service digital network lsb least signi?cant bit msb most signi?cant bit pcb printed-circuit board rohs restriction of hazardous substances directive uart universal asynchronous receiver/transmitter vlio variable latency input/output
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 52 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 14. revision history table 43. revision history document id release date data sheet status change notice supersedes SC16C852V_3 20071015 product data sheet - SC16C852V_2 modi?cations: ? t ab le 38 static char acter istics : C changed maximum i dd(sleep) from 80 m a to 5 m a C changed maximum i dd(lp) from 80 m a to 5 m a SC16C852V_2 20070105 product data sheet - SC16C852V_1 SC16C852V_1 20061031 objective data sheet - -
SC16C852V_3 ? nxp b.v. 2007. all rights reserved. product data sheet rev. 03 15 october 2007 53 of 54 nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface 15. legal information 15.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term short data sheet is explained in section de?nitions. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple dev ices. the latest product status information is available on the internet at url http://www .nxp .com . 15.2 de?nitions draft the document is a draft version only. the content is still under internal review and subject to formal approval, which may result in modi?cations or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall have no liability for the consequences of use of such information. short data sheet a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request via the local nxp semiconductors sales of?ce. in case of any inconsistency or con?ict with the short data sheet, the full data sheet shall prevail. 15.3 disclaimers general information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such information. right to make changes nxp semiconductors reserves the right to make changes to information published in this document, including without limitation speci?cations and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use nxp semiconductors products are not designed, authorized or warranted to be suitable for use in medical, military, aircraft, space or life support equipment, nor in applications where failure or malfunction of a nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors accepts no liability for inclusion and/or use of nxp semiconductors products in such equipment or applications and therefore such inclusion and/or use is at the customers own risk. applications applications that are described herein for any of these products are for illustrative purposes only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the speci?ed use without further testing or modi?cation. limiting values stress above one or more limiting values (as de?ned in the absolute maximum ratings system of iec 60134) may cause permanent damage to the device. limiting values are stress ratings only and operation of the device at these or any other conditions above those given in the characteristics sections of this document is not implied. exposure to limiting values for extended periods may affect device reliability. terms and conditions of sale nxp semiconductors products are sold subject to the general terms and conditions of commercial sale, as published at http://www .nxp .com/pro? le/ter ms , including those pertaining to warranty, intellectual property rights infringement and limitation of liability, unless explicitly otherwise agreed to in writing by nxp semiconductors. in case of any inconsistency or con?ict between information in this document and such terms and conditions, the latter will prevail. no offer to sell or license nothing in this document may be interpreted or construed as an offer to sell products that is open for acceptance or the grant, conveyance or implication of any license under any copyrights, patents or other industrial or intellectual property rights. 15.4 trademarks notice: all referenced brands, product names, service names and trademarks are the property of their respective owners. 16. contact information for additional information, please visit: http://www .nxp.com for sales of?ce addresses, send an email to: salesad dresses@nxp.com document status [1] [2] product status [3] de?nition objective [short] data sheet development this document contains data from the objective speci?cation for product development. preliminary [short] data sheet quali?cation this document contains data from the preliminary speci?cation. product [short] data sheet production this document contains the product speci?cation.
nxp semiconductors SC16C852V dual uart with 128-byte fifos, irda, and xscale vlio bus interface ? nxp b.v. 2007. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com date of release: 15 october 2007 document identifier: SC16C852V_3 please be aware that important notices concerning this document and the product(s) described herein, have been included in section legal information. 17. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 ordering information . . . . . . . . . . . . . . . . . . . . . 2 4 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3 5 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 5.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 6 6 functional description . . . . . . . . . . . . . . . . . . . 9 6.1 uart a-b functions . . . . . . . . . . . . . . . . . . . . . 9 6.2 extended mode (128-byte fifo) . . . . . . . . . . 10 6.3 internal registers. . . . . . . . . . . . . . . . . . . . . . . 10 6.4 fifo operation . . . . . . . . . . . . . . . . . . . . . . . . 11 6.4.1 32-byte fifo mode. . . . . . . . . . . . . . . . . . . . . 11 6.4.2 128-byte fifo mode. . . . . . . . . . . . . . . . . . . . 11 6.5 hardware ?ow control . . . . . . . . . . . . . . . . . . . 11 6.6 software ?ow control . . . . . . . . . . . . . . . . . . . 12 6.7 special character detect . . . . . . . . . . . . . . . . . 13 6.8 interrupt priority and time-out interrupts . . . . . 13 6.9 programmable baud rate generator . . . . . . . . 14 6.10 dma operation . . . . . . . . . . . . . . . . . . . . . . . . 16 6.11 loopback mode . . . . . . . . . . . . . . . . . . . . . . . 16 6.12 sleep mode. . . . . . . . . . . . . . . . . . . . . . . . . . . 18 6.12.1 conditions to enter sleep mode . . . . . . . . . . . 18 6.12.2 conditions to resume normal operation . . . . . 18 6.13 low power feature . . . . . . . . . . . . . . . . . . . . . 18 6.14 rs-485 features . . . . . . . . . . . . . . . . . . . . . . 19 6.14.1 auto rs-485 r ts control . . . . . . . . . . . . . . . . 19 6.14.2 rs-485 r ts inversion . . . . . . . . . . . . . . . . . . 19 6.14.3 auto 9-bit mode (rs-485). . . . . . . . . . . . . . . . 19 6.14.3.1 normal multi-drop mode . . . . . . . . . . . . . . . . . 19 6.14.3.2 auto address detection . . . . . . . . . . . . . . . . . . 20 7 register descriptions . . . . . . . . . . . . . . . . . . . 20 7.1 transmit (thr) and receive (rhr) holding registers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 7.2 interrupt enable register (ier) . . . . . . . . . . . 23 7.2.1 ier versus transmit/receive fifo interrupt mode operation. . . . . . . . . . . . . . . . . 24 7.2.2 ier versus receive/transmit fifo polled mode operation . . . . . . . . . . . . . . . . . . 24 7.3 fifo control register (fcr) . . . . . . . . . . . . . 25 7.3.1 dma mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.3.1.1 mode 0 (fcr bit 3 = 0) . . . . . . . . . . . . . . . . . . 25 7.3.1.2 mode 1 (fcr bit 3 = 1) . . . . . . . . . . . . . . . . . . 25 7.3.2 fifo mode . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 7.4 interrupt status register (isr) . . . . . . . . . . . . 27 7.5 line control register (lcr) . . . . . . . . . . . . . . 28 7.6 modem control register (mcr) . . . . . . . . . . . 29 7.7 line status register (lsr) . . . . . . . . . . . . . . 30 7.8 modem status register (msr) . . . . . . . . . . . 31 7.9 extra feature control register (efcr) . . . . . 32 7.10 scratchpad register (spr) . . . . . . . . . . . . . . 32 7.11 division latch (dll and dlm) . . . . . . . . . . . . 32 7.12 transmit fifo level count (txlvlcnt) . . . . 32 7.13 receive fifo level count (rxlvlcnt) . . . . 32 7.14 enhanced feature register (efr). . . . . . . . . 33 7.15 transmit interrupt level register (txintlvl) . 34 7.16 receive interrupt level register (rxintlvl) . 34 7.17 flow control trigger level high (flwcnth). 35 7.18 flow control trigger level low (flwcntl) . 35 7.19 clock prescaler (clkpres) . . . . . . . . . . . . . 35 7.20 rs-485 turn-around time delay (rs485time) 36 7.21 advanced feature control register 1 (afcr1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7.22 advanced feature control register 2 (afcr2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 7.23 SC16C852V external reset condition and software reset. . . . . . . . . . . . . . . . . . . . . . . . 38 8 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 39 9 static characteristics . . . . . . . . . . . . . . . . . . . 39 10 dynamic characteristics . . . . . . . . . . . . . . . . . 40 10.1 timing diagrams. . . . . . . . . . . . . . . . . . . . . . . 41 11 package outline . . . . . . . . . . . . . . . . . . . . . . . . 47 12 soldering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 12.1 introduction to soldering. . . . . . . . . . . . . . . . . 49 12.2 wave and re?ow soldering . . . . . . . . . . . . . . . 49 12.3 wave soldering. . . . . . . . . . . . . . . . . . . . . . . . 49 12.4 re?ow soldering. . . . . . . . . . . . . . . . . . . . . . . 50 13 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 51 14 revision history . . . . . . . . . . . . . . . . . . . . . . . 52 15 legal information . . . . . . . . . . . . . . . . . . . . . . 53 15.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 53 15.2 de?nitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 15.3 disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 53 15.4 trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 53 16 contact information . . . . . . . . . . . . . . . . . . . . 53 17 contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54


▲Up To Search▲   

 
Price & Availability of SC16C852V

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X